﻿<html xmlns:v>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>KnifeCMS工作流管理</title>
	<link rel="stylesheet" type="text/css" href="/include/manage/strawberry/themes/default/easyui.css">
	<link href="/include/manage/strawberry/css/flowPath.css" type="text/css" rel="stylesheet" />
	
	<link href="/include/manage/images/main/style.css" rel="stylesheet" type="text/css" />
	<link href="/include/manage/dialog/asyncbox.css" type="text/css" rel="stylesheet" />
	<script type="text/javascript" src="/include/manage/js/jquery.js"></script>
	<script type="text/javascript" src="/include/manage/js/AsyncBox.js"></script>
	
		<script type="text/javascript">
		


/**************************************************
 * DivWindow.js

 **************************************************/
var DivWindow= function(popup/*最外层div id*/,popup_drag/*拖动div id*/,popup_exit/*退出按钮id*/ ,exitButton/*触发服务器端退出按钮id*/,varwidth,varheight,zindex,parameter){

 
 this.popup =popup ; //窗口名称
  this.popup_drag=popup_drag;
 this.height =varheight ; //窗口高度，并没用来设置窗口高度宽度，用来定位在屏幕的位置
 this.width =varwidth ; //窗口宽度
        this.popup_exit=popup_exit;
        this.exitButton=exitButton;
        this.zindex=zindex;      
 this.init = function(){ //初始化窗口
  
  
  this.popupShow(parameter);
  
  this.startDrag(); //设置拖动
  
  this.setCommond(); //设置关闭
  DivWindow.ArrayW.push(document.getElementById(this.popup)); //存储窗口到数组

 };this.init();
};

//存储窗口到数组
DivWindow.ArrayW = new Array();

//字符串连接类
DivWindow.StringBuild = function(){
 this.arr = new Array();
 this.push = function(str){
  this.arr.push(str);
 };
 this.toString = function(){
  return this.arr.join("");
 };
};

//拖动类
DivWindow.Drag = function(o ,oRoot){
 var _self = this;
 //拖动对象
 this.obj = (typeof oRoot != "undefined") ?oRoot : o;
 this.relLeft = 0; //记录横坐标
 this.relTop = 0; //记录纵坐标
 o.onselectstart = function(){
  return false;
 };
 o.onmousedown = function(e){ //鼠标按下
  e = _self.fixE(e);
  _self.relLeft = e.clientX - _self.fixU(_self.obj.style.left); 
  _self.relTop = e.clientY - _self.fixU(_self.obj.style.top); 
  document.onmousemove = function(e){
   _self.drag(e);
   //_self.obj.style.border = "1px dashed #000000";
   //_self.obj.style.filter = "alpha(opacity=30)";
   //_self.obj.style.opacity = "0.3";
  };
  document.onmouseup  = function(){
   _self.end();
   //_self.obj.style.border = "1px solid #cccccc";
   //_self.obj.style.borderBottom = "2px solid #E0E0E0";
   //_self.obj.style.borderRight = "2px solid #E0E0E0";
   //_self.obj.style.filter = "alpha(opacity=100)";
   //_self.obj.style.opacity = "1";
  };
 };
 this.drag = function(e){ //拖动
  e = this.fixE(e);
  var l = e.clientX - this.relLeft;
  var t = e.clientY - this.relTop;
  if (t < 0)
  {
   t = 0; //防止头部消失
  }
  this.obj.style.left = l +"px";
  this.obj.style.top = t +"px"; 
 };
 this.end = function(){ //结束拖动
  document.onmousemove = null;
  document.onmouseup = null;
 };
 this.fixE = function(e){ //修复事件
  if (typeof e == "undefined") e = window.event;
  return e;
 };
 this.fixU = function(u){ //处理px单位
  return parseInt(u.split("p")[0]);
 };
};



//窗口拖动
DivWindow.prototype.startDrag = function(){
 var obj = document.getElementById(this.popup);
        var drag = document.getElementById(this.popup_drag);   
 new DivWindow.Drag(drag,obj);
};


//设定窗口优先级
DivWindow.prototype.setTop = function(){
 document.getElementById(this.popup).onclick = 
 document.getElementById(this.popup).onmousedown = 
 function(){
  for(var i=0;i<DivWindow.ArrayW.length;i++)
  {
   DivWindow.ArrayW[i].style.zIndex = 1;
  }
  this.style.zIndex = 100;
 }; 
};
//显示
DivWindow.prototype.popupShow=function(parameter) 
{       document.getElementById('mask').style.display="block"; 
        document.getElementById('mask').style.width=window.screen.width +20;
        document.getElementById('mask').style.height=window.screen.width +20;
        var  element      = document.getElementById(this.popup); 
        element.style.position   = "absolute"; 
		element.style.backgroundColor = "rgb(233, 235, 254)";
		element.style.border="1px solid blue";
        element.style.visibility = "visible"; 
        element.style.display    = "block"; 
        element.style.width=this.width;
        element.style.height='auto';
		element.style.padding="0.3cm 0.5cm";
        element.style.left = (window.screen.width - this.width)/2+"px";
        //element.style.top  =(window.screen.height-this.height-100)/2+"px";
         element.style.top  =20+"px";
        element.style.zIndex=this.zindex;
		
		$('#parameter').val(parameter);
		if(document.getElementById('parameter').value=="save"){
			document.writeform.id.value="";
			document.getElementById("name").value="";
			var objSelecttype=document.getElementById("type");
			objSelecttype.selectedIndex = -1;
			var objSelectexecutor=document.getElementById("executor");
			objSelectexecutor.selectedIndex = -1;
			var objSelectexecutor_type=document.getElementById("execute_type");
			objSelectexecutor_type.selectedIndex = -1;
		}
		if(document.getElementById('parameter').value=="update"){				
			var form=document.getElementById("writeform");
			var id=document.getElementById('del_nodeid').value;
			$.ajax({                                                 
				type: "GET",
				dataType: "json",
				//url: '/manage_flowNode.ad?parameter=getObjNode',  
				url:'/include/manage/getNodeJson.jsp',	
				data: {"nodeid":id},
				cache: false,
				success: function(node_json){ 
					//console.log(node_json);
					if (node_json != true){
						//var nodejson = eval(node_json);
						document.writeform.id.value=node_json[0].id;
						document.getElementById("name").value=node_json[0].name;
						var objSelecttype=document.getElementById("type");
							for (var i = 0; i < objSelecttype.options.length; i++) {        
								if (objSelecttype.options[i].value == node_json[0].type) {        
									objSelecttype.options[i].selected = true;
								}
							}
						var objSelectexecutor=document.getElementById("executor");
							for (var i = 0; i < objSelectexecutor.options.length; i++) {        
								if (objSelectexecutor.options[i].value == node_json[0].executor) {        
									objSelectexecutor.options[i].selected = true;
								}
							}
						var objSelectexecutor_type=document.getElementById("execute_type");
							for (var i = 0; i < objSelectexecutor_type.options.length; i++) {        
								if (objSelectexecutor_type.options[i].value == node_json[0].execute_type) {        
									objSelectexecutor_type.options[i].selected = true;
								}
							}
					
					 }
			}
			});
							}
} 
//设置关闭
DivWindow.prototype.setCommond = function(){
 var _self = this;
 //根对象
 var obj = document.getElementById(this.popup);
 var exit = document.getElementById(this.popup_exit);
 var triggServerEvent=document.getElementById(this.exitButton);

 //设置关闭
             exit.onclick = function(){
      obj.style.display = "none";
      obj.style.visibility = 'hidden'; 
                    document.all.mask.style.display='none'//关闭遮罩层
                    triggServerEvent.click();//触发服务器端退出事件
     };
};

		//右击弹出菜单
 function showMenu(id)
               {     
			   //alert(id);
				     document.getElementById('del_nodeid').value=id;
					
                      popMenu(rightMenu,100,"011");
                      event.returnValue=false;
                      event.cancelBubble=true;
					  
                      return false;
               }
               /**
               *显示弹出菜单
               *menuDiv:右键菜单的内容
               *width:行显示的宽度
               *rowControlString:行控制字符串，0表示不显示，1表示显示，如“101”，则表示第1、3行显示，第2行不显示
               */
               function popMenu(menuDiv,width,rowControlString)
               {
                   //创建弹出菜单
                   var pop=window.createPopup();
                   //设置弹出菜单的内容
                   pop.document.body.innerHTML=menuDiv.innerHTML;

                   var rowObjs=pop.document.body.all[0].rows;
                   //获得弹出菜单的行数
                   var rowCount=rowObjs.length;
                   //循环设置每行的属性
                   for(var i=0;i<rowObjs.length;i++)
                   {
                       //如果设置该行不显示，则行数减一
                       var hide=rowControlString.charAt(i)!='1';
                       if(hide){
                           rowCount--;
                      }
                      //设置是否显示该行
                      rowObjs[i].style.display=(hide)?"none":"";
                      //设置鼠标滑入该行时的效果
                      rowObjs[i].cells[0].onmouseover=function(){
                            this.style.background="#818181";
                           this.style.color="white";
                      }
                      //设置鼠标滑出该行时的效果
                      rowObjs[i].cells[0].onmouseout=function(){

                          this.style.background="#cccccc";

                          this.style.color="black";

                     }
                }
                //屏蔽菜单的菜单
                pop.document.oncontextmenu=function(){
                      return false;
                }
                //选择右键菜单的一项后，菜单隐藏

                pop.document.onclick=function(){
                      pop.hide();
                }
                //显示菜单
                pop.show(event.clientX-1,event.clientY,width,rowCount*25,document.body);
                return true;
          }

</script>
	
	<STYLE>
		v\:*{behavior:url(#default#VML);}
	</STYLE>
<style>
<!--
.drag{position:relative;cursor:hand}
-->
</style>
<script language="JavaScript1.2">
<!--
var dragapproved=false
var z,x,y
function move(){
if (event.button==1&&dragapproved){
z.style.pixelLeft=temp1+event.clientX-x
z.style.pixelTop=temp2+event.clientY-y
return false
}
}
function drags(){
if (!document.all)
return
if (event.srcElement.className=="drag"){
dragapproved=true
z=event.srcElement
temp1=z.style.pixelLeft
temp2=z.style.pixelTop
x=event.clientX
y=event.clientY
document.onmousemove=move
}
}
document.onmousedown=drags
document.onmouseup=new Function("dragapproved=false")
//-->
</script>
</head>

<body class="easyui-layout bodySelectNone" id="body" onselectstart="return false">

	<div region="center" title="流程设计" id="contextBody" class="mapContext" >
			<div>
			<input type="button"  id="show" onclick="javascript:new DivWindow('popup','popup_drag','popup_exit','exitButton','400','700',4,'save');"  value='新增节点'   />
			</div>
			#set($i=1)
			#foreach($node in $flowNodeList)
				#if($i==1)
					<div id="baseMode35" divType="mode" style="float:left;margin-top:10px" >
						<div tiitle="$!node.name" >&nbsp;</div>
						<img id="backGroundImg" src="/include/manage/strawberry/images/begin.gif" class="nodeStyle"/>开始$!node.name
					</div>
				  <div id="baseMode35" divType="mode" style="float:left;margin-top:10px" >
								<div tiitle="$!node.name">&nbsp;</div>
								<img id="backGroundImg" src="/include/manage/strawberry/images/001 (2).png" class="nodeStyle"/>
				  </div>	
				  
				#else #if($i==$flowNodeList.size())
					<div id="baseMode35" divType="mode" style="float:left;margin-top:10px" >
						<div tiitle="$!node.name" >&nbsp;</div>
						<img id="backGroundImg" src="/include/manage/strawberry/images/end.gif" class="nodeStyle"/>结束$!node.name
					</div>
					#else 
						<div id="baseMode35" divType="mode" style="float:left;margin-top:10px" oncontextmenu = "javascript:showMenu('$node.id');">
							<div tiitle="$!node.name" >&nbsp;</div>
							<img id="backGroundImg" src="/include/manage/strawberry/images/user.gif" class="nodeStyle"/>$!node.name
						</div>
						<div id="baseMode35" divType="mode" style="float:left;margin-top:10px" >
							<div tiitle="$!node.name">&nbsp;</div>
							<img id="backGroundImg" src="/include/manage/strawberry/images/001 (2).png" class="nodeStyle"/>
						</div>	
					
					#end 
				#end
				#set($i=$i+1)
			#end 
			
			<!-- Line右键菜单 -->
			<div id="lineRightMenu" class="modeRight" >
				<div class="modeRightTop"></div>
				<div class="modeRightDel" onmousemove="this.style.backgroundColor='#c5e7f6'" onclick="graphUtils.removeNode();" onmouseout="this.style.backgroundColor=''"><span class="menuSpan">删 除</span></div>
				<div class="modeRightPro" onmousemove="this.style.backgroundColor='#c5e7f6'" onclick="graphUtils.showLinePro();" onmouseout="this.style.backgroundColor=''"><span class="menuSpan">属 性</span></div>
				<div class="modeRightButtom"></div>
			</div>
					
			<!-- Mode右键菜单 -->
			<div id="1rightMenu" class="modeRight" style="display:none">
				<div class="modeRightTop"></div>
				<div class="modeRightCopy" onmousemove="this.style.backgroundColor='#c5e7f6'" onclick="graphUtils.copyNode();" onmouseout="this.style.backgroundColor=''"><span class="menuSpan">复 制</span></div>
				<div class="modeRightDel" onmousemove="this.style.backgroundColor='#c5e7f6'" onclick="graphUtils.removeNode();" onmouseout="this.style.backgroundColor=''"><span class="menuSpan">删 除</span></div>
				<div class="modeRightPro" onmousemove="this.style.backgroundColor='#c5e7f6'" onclick="graphUtils.showModePro();" onmouseout="this.style.backgroundColor=''"><span class="menuSpan">属 性</span></div>
				<div class="modeRightButtom"></div>
			</div>
			<!--这个input只是为了传递node的id而用的-->
			<input type="hidden" name="del_nodeid" id="del_nodeid" value="" />
			<div id="rightMenu" class="modeRight" style="display:none">
				
            <table border="1" width="100%" height="100%" bgcolor="#cccccc" style="border:thin" cellspacing="0">
            	
                <tr>
                    <td onmousemove="this.style.backgroundColor='#c5e7f6'" onclick="graphUtils.copyNode();" onmouseout="this.style.backgroundColor=''" align="center" >
                        <span class="menuSpan">复 制</span>
                    </td>
                </tr>
                <tr>
                    <td onmousemove="this.style.backgroundColor='#c5e7f6'" onclick="javascript:parent.deleteNodes()" onmouseout="this.style.backgroundColor=''" align="center"  >
                        删 除
                    </td>
                </tr>
                <tr>
                    <td onmousemove="this.style.backgroundColor='#c5e7f6'" onclick="new parent.DivWindow('popup','popup_drag','popup_exit','exitButton','400','700',4,'update');" onmouseout="this.style.backgroundColor=''"  align="center" >
                        <a href="#">属 性</a>
                    </td>
                </tr>
            </table>
        </div>
			
			<!-- PathBody右键菜单 -->
			<div id="pathBodyRightMenu" class="modeRight">
				<div class="modeRightTop"></div>
				<div class="modeRightPixel" id="isPixel" onclick="global.baseTool.changStyle(this);" onmousemove="this.style.backgroundColor='#c5e7f6'" onmouseout="this.style.backgroundColor=''"><span class="menuSpan">Pixel</span></div>
				<div class="modeRightLeft" onclick="graphUtils.alignLeft();" onmousemove="this.style.backgroundColor='#c5e7f6'" onmouseout="this.style.backgroundColor=''"><span class="menuSpan">左对齐</span></div>
				<div class="modeRightCenter" onclick="graphUtils.verticalCenter();" onmousemove="this.style.backgroundColor='#c5e7f6'" onmouseout="this.style.backgroundColor=''"><span class="menuSpan">垂直居中</span></div>
				<div class="modeRightRight" onclick="graphUtils.alignRight();" onmousemove="this.style.backgroundColor='#c5e7f6'" onmouseout="this.style.backgroundColor=''"><span class="menuSpan">右对齐</span></div>
				<div class="modeRightHead" onclick="graphUtils.alignTop();" onmousemove="this.style.backgroundColor='#c5e7f6'" onmouseout="this.style.backgroundColor=''"><span class="menuSpan">顶部对齐</span></div>
				<div class="modeRightMiddle" onclick="graphUtils.horizontalCenter();" onmousemove="this.style.backgroundColor='#c5e7f6'" onmouseout="this.style.backgroundColor=''"><span class="menuSpan">水平居中</span></div>
				<div class="modeRightFoot" onclick="graphUtils.bottomAlignment();" onmousemove="this.style.backgroundColor='#c5e7f6'" onmouseout="this.style.backgroundColor=''"><span class="menuSpan">底端对齐</span></div>
				<div class="modeRightButtom"></div>
			</div>
			
		 	<div id="topCross"></div>
      <div id="leftCross"></div>
	
	</div>
<!--
	<div region="east" split="true" title="历史操作" class="history">
		<div id="historyMessage" class="historyMessage"></div>
	</div>
-->
	
	<!-- 移动时的图象 -->
	<div id="moveBaseMode" class="moveBaseMode">
		<img id="moveBaseModeImg"  src="/include/manage/strawberry/images/Favourite.png" class="nodeStyle"/>
	</div>
	
	<div id="prop" style="visibility: hidden;">
				Dialog Content.  
	</div>
	
	
<!-- 遮罩层 -->
 <div id="mask"  class="mask">
 </div>
<!-- 弹出基本资料详细DIV层 -->
<div class="sample_popup"     id="popup" style="visibility: hidden; display: none;"> 
	<div class="menu_form_header" style="background-color:beige" id="popup_drag"> 

	 
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="blue">温馨提示，这个窗口可以拖动</font>
	<br/>
	<br/>
	</div> 
	<div class="menu_form_body" > 

		<div id="popDetail">
			<form id="writeform" name="writeform" method="post" action="/manage_flowNode.ad">
				
				<div class="cont">
					<input type="hidden" id="parameter" name="parameter"  />
					<input type="hidden" id="id" name="id" value="$!flowNode.id" />
					<input type="hidden" name="workflow_id" value="$workflow_id" />
					<p>流节点属性编辑框</p>
					<br/>
						<strong>流节点名：</strong><input type="text"  name="name" id="name" value="$!flowNode.name"/><br/>
							<!--<li><strong>流节点类型：</strong><input type="text" name="type" id="type" value="$!flowNode.type" /></li>-->
							<strong>节点功能：</strong><select name="type" id="type" style="width:300" onblur="#set($pop=1)">
									<option value=1 #if($!flowNode.type==1) selected #end>>编辑文章</option>
									<option value=2 #if($!flowNode.type==2) selected #end>>审核文章</option>
								</select><br/>
							<strong>用户组：&nbsp;&nbsp;&nbsp;&nbsp;</strong><select name="executor" id="executor" style="width:300px" align="top" size="10" >
								<option value="0"#if($flowNode.executor.equals("0")) selected#end>>频道编辑</option>
									<option value="1"#if($flowNode.executor.equals("1")) selected#end>>频道审核员</option>
									<option value="2"#if($flowNode.executor.equals("2")) selected#end>>频道管理</option>
								<!--#set($i=1)
								#foreach($username in $UList)
									<option value="3"#if($tid.equals("3")) selected#end>超级管理员</option>
									<option value="$!username.id"  #if($flowNode.executor==$!username.id) selected #end style="color:red" >$!username.username</option>
								#set($i=$i+1)
							#end-->	
							</select><br/>
							<strong>审核类型：</strong><select name="execute_type" id="execute_type" style="width:300">
							<option value=1 #if($flowNode.execute_type==1) selected #end>>组内任一用户审核即可</option>
							<option value=2 #if($flowNode.execute_type==2) selected #end>>组内所有用户需要审核</option>
							</select>
					<br/>
					<input type="submit" name="Submit" value="确定" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" id="popup_exit" value="取消" /> 
	   <br />
	   <br/>
		
	 </div>
	 </form>   
		</div>
	</div>
</div>

	</body>
	
	<script src="/include/manage/strawberry/js/jquery-1.6.min.js" type="text/javascript"></script>
	<script src="/include/manage/strawberry/js/jquery.easyui.min.js" type="text/javascript"></script>
	<script src="/include/manage/strawberry/js/strawberry.min.js" type="text/javascript" language="javascript"></script>
	
	<script>
		
			var mainControl = $id("mainControl");
			mainControl.style.width = (document.body.offsetWidth - 412) + "px";
			
  		var bgImg = "url(images/bg.gif)";
  		var backColor = "#e0ecff";
  		
  		
  		function hOnMouseOver(tagObj, index) {
				
				var h1 = $id("h1");
				var h2 = $id("h2");
				var h3 = $id("h3");
				
				var tab1 = $id("tab1");
				var tab2 = $id("tab2");
				var tab3 = $id("tab3");
				
				var setHClass = function (obj, colorValue, indexValue) {
				
					obj.style.background = colorValue;
					obj.style.zIndex = indexValue;
					
				}
				
				var setTagClass = function (obj, className) {
					
					obj.setAttribute("class", className);
					obj.setAttribute("className", className);

				}
				
				setHClass(h1, bgImg, "1");
				setHClass(h2, bgImg, "1");
				setHClass(h3, bgImg, "1");
				
				setTagClass(tab1, "htab");
				setTagClass(tab2, "htab");
				setTagClass(tab3, "htab");
				
				setHClass(tagObj, backColor,"3");
				setTagClass($id("tab" + index), "htabup");
				
			}
  		
			jQuery(document).ready(function () {
				
				$id("h1").style.background = "#e0ecff";
				$id("h1").style.zIndex = "3";
				
				var global = com.xjwgraph.Global;
				
				graphUtils = com.xjwgraph.Utils.create({
					
					contextBody : 'contextBody',
					width : 1600,
					height : 1000,
					smallMap : 'smallMap',
					mainControl : 'mainControl',
					historyMessage : 'historyMessage',
					prop : 'prop'
				
				});
				
				graphUtils.nodeDrag($id("baseLine1"), true, 1);
				graphUtils.nodeDrag($id("baseLine2"), true, 2);
				graphUtils.nodeDrag($id("baseLine3"), true, 3);

				var modes = jQuery("[divType='mode']");
				var modeLength = modes.length;
				
				for (var i = 0; i < modeLength; i++) {
					graphUtils.nodeDrag(modes[i]);
				}
				
				document.body.onclick = function () {
					
					if (!stopEvent) {
						global.modeTool.clear();
					} 
					
				}
				
				function countModule() {
				
					stopEvent = false;
					
					var lineCount = global.lineMap.size();
					var modeCount = global.modeMap.size();
					var contextCount = global.baseTool.contextMap.size();
					
					$id("lineCount").innerHTML = "线总数:" + lineCount;
					$id("modeCount").innerHTML = "模型数:" + modeCount;
				
					$id("contextCount").innerHTML = "区域数:" + contextCount;
					
				}
				
				countModule();
				
				document.onclick = countModule;
				document.onkeydown = KeyDown;
				
				var xmlText = '<?xml version="1.0"?><modes><mode class="module" contentEditable="inherit" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" id="76" title="电汇票据明细" backImgSrc="/include/manage/strawberry/images/end.png" top="365" left="1206" zIndex="12" width="94" height="36"/><mode class="module" contentEditable="inherit" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" id="70" title="电汇票据明细" backImgSrc="/include/manage/strawberry/images/handBus.png" top="474" left="1028" zIndex="12" width="100" height="50"/><mode class="module" contentEditable="inherit" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" id="68" title="现金支票明细" backImgSrc="/include/manage/strawberry/images/handBus.png" top="358" left="1019" zIndex="12" width="100" height="50"/><mode class="module" contentEditable="inherit" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" id="64" title="转帐支票明细" backImgSrc="/include/manage/strawberry/images/handBus.png" top="248" left="1019" zIndex="12" width="100" height="50"/><mode class="module" contentEditable="inherit" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" id="60" title="转/现/汇" backImgSrc="/include/manage/strawberry/images/switch.png" top="358" left="755" zIndex="12" width="100" height="50"/><mode class="module" contentEditable="inherit" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" id="50" title="打印清单并购买票据" backImgSrc="/include/manage/strawberry/images/business.png" top="352" left="496" zIndex="12" width="128" height="63"/><mode class="module" contentEditable="inherit" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" id="42" title="总经理审批" backImgSrc="/include/manage/strawberry/images/switch.png" top="792" left="232" zIndex="12" width="100" height="50"/><mode class="module" contentEditable="inherit" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" id="40" title="财务经理审批" backImgSrc="/include/manage/strawberry/images/switch.png" top="628" left="232" zIndex="12" width="100" height="50"/><mode class="module" contentEditable="inherit" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" id="26" title="会计审批" backImgSrc="/include/manage/strawberry/images/switch.png" top="482" left="232" zIndex="12" width="100" height="50"/><mode class="module" contentEditable="inherit" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" id="14" title="银行结算票据" backImgSrc="/include/manage/strawberry/images/business.png" top="291" left="232" zIndex="12" width="100" height="50"/><mode class="module" contentEditable="inherit" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" id="12" title="开始" backImgSrc="/include/manage/strawberry/images/start.png" top="144" left="232" zIndex="12" width="100" height="50"/><line strokeweight="1.35" strokecolor="black" d="m283 680 L 283 792 z" brokenType="1" contentEditable="inherit" id="line34" style="WIDTH: 100px; CURSOR: pointer; POSITION: absolute; HEIGHT: 100px;fill: none; stroke: black; stroke-width: 1.7999999999999998" marker-end="url(#arrow)" xBaseMode="module40" xIndex="7" wBaseMode="module42" wIndex="2" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" attr_prop_attri4="5"/><line strokeweight="1.35" strokecolor="black" d="m283 534 L 283 628 z" brokenType="1" contentEditable="inherit" id="line32" style="WIDTH: 100px; CURSOR: pointer; POSITION: absolute; HEIGHT: 100px;fill: none; stroke: black; stroke-width: 1.7999999999999998" marker-end="url(#arrow)" xBaseMode="module26" xIndex="7" wBaseMode="module40" wIndex="2" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" attr_prop_attri4="5"/><line strokeweight="1.35" strokecolor="black" d="m283 343 L 283 482 z" brokenType="1" contentEditable="inherit" id="line30" style="WIDTH: 100px; CURSOR: pointer; POSITION: absolute; HEIGHT: 100px;fill: none; stroke: black; stroke-width: 1.7999999999999998" marker-end="url(#arrow)" wBaseMode="module26" wIndex="2" xBaseMode="module14" xIndex="7" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" attr_prop_attri4="5"/><line strokeweight="1.35" strokecolor="black" d="m283 196 L 283 291 z" brokenType="1" contentEditable="inherit" id="line28" style="WIDTH: 100px; CURSOR: pointer; POSITION: absolute; HEIGHT: 100px;fill: none; stroke: black; stroke-width: 1.7999999999999998" marker-end="url(#arrow)" xBaseMode="module12" xIndex="7" wBaseMode="module14" wIndex="2" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" attr_prop_attri4="5"/><line strokeweight="1.35" strokecolor="black" d="M 334 818 L 421 818,421 384,496 384" brokenType="3" contentEditable="inherit" id="line26" style="WIDTH: 100px; CURSOR: pointer; POSITION: absolute; HEIGHT: 100px;fill: none; stroke: black; stroke-width: 1.7999999999999998" marker-end="url(#arrow)" wBaseMode="module50" wIndex="4" xBaseMode="module42" xIndex="5" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" attr_prop_attri4="5"/><line strokeweight="1.35" strokecolor="black" d="m626 384 L 755 384 z" brokenType="1" contentEditable="inherit" id="line24" style="WIDTH: 100px; CURSOR: pointer; POSITION: absolute; HEIGHT: 100px;fill: none; stroke: black; stroke-width: 1.7999999999999998" marker-end="url(#arrow)" xBaseMode="module50" xIndex="5" wBaseMode="module60" wIndex="4" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" attr_prop_attri4="5"/><line strokeweight="1.35" strokecolor="black" d="M 1130 500 L 1163 500,1163 384,1206 384" brokenType="3" contentEditable="inherit" id="line22" style="WIDTH: 100px; CURSOR: pointer; POSITION: absolute; HEIGHT: 100px;fill: none; stroke: black; stroke-width: 1.7999999999999998" marker-end="url(#arrow)" wBaseMode="module76" wIndex="4" xBaseMode="module70" xIndex="5" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" attr_prop_attri4="5"/><line strokeweight="1.35" strokecolor="black" d="M 1121 384 L 1163 384,1163 384,1206 384" brokenType="3" contentEditable="inherit" id="line20" style="WIDTH: 100px; CURSOR: pointer; POSITION: absolute; HEIGHT: 100px;fill: none; stroke: black; stroke-width: 1.7999999999999998" marker-end="url(#arrow)" wBaseMode="module76" wIndex="4" xBaseMode="module68" xIndex="5" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" attr_prop_attri4="5"/><line strokeweight="1.35" strokecolor="black" d="M 1121 274 L 1163 274,1163 384,1206 384" brokenType="3" contentEditable="inherit" id="line18" style="WIDTH: 100px; CURSOR: pointer; POSITION: absolute; HEIGHT: 100px;fill: none; stroke: black; stroke-width: 1.7999999999999998" marker-end="url(#arrow)" wBaseMode="module76" wIndex="4" xBaseMode="module64" xIndex="5" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" attr_prop_attri4="5"/><line strokeweight="1.35" strokecolor="black" d="M 857 384 L 965 384,965 500,1028 500" brokenType="3" contentEditable="inherit" id="line16" style="WIDTH: 100px; CURSOR: pointer; POSITION: absolute; HEIGHT: 100px;fill: none; stroke: black; stroke-width: 1.7999999999999998" marker-end="url(#arrow)" wBaseMode="module70" wIndex="4" xBaseMode="module60" xIndex="5" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" attr_prop_attri4="5"/><line strokeweight="1.35" strokecolor="black" d="M 857 384 L 965 384,965 384,1019 384" brokenType="3" contentEditable="inherit" id="line14" style="WIDTH: 100px; CURSOR: pointer; POSITION: absolute; HEIGHT: 100px;fill: none; stroke: black; stroke-width: 1.7999999999999998" marker-end="url(#arrow)" wBaseMode="module68" wIndex="4" xBaseMode="module60" xIndex="5" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" attr_prop_attri4="5"/><line strokeweight="1.35" strokecolor="black" d="M 857 384 L 965 384,965 274,1019 274" brokenType="3" contentEditable="inherit" id="line12" style="WIDTH: 100px; CURSOR: pointer; POSITION: absolute; HEIGHT: 100px;fill: none; stroke: black; stroke-width: 1.7999999999999998" marker-end="url(#arrow)" wBaseMode="module64" wIndex="4" xBaseMode="module60" xIndex="5" attr_prop_attri1="2" attr_prop_attri2="3" attr_prop_attri3="4" attr_prop_attri4="5"/></modes>';
				graphUtils.loadTextXml(xmlText);
			
			});
			

		  
function deleteNodes(){
		var id= $('#del_nodeid').val();
		
	if(confirm('确定要删除吗?')){
		alert("nodeid="+id);
		//alert(window.location.href);
		var new_url = "/manage_flowNode.ad?parameter=delete&id="+id+"&workflow_id=$workflow_id";
		//alert(new_url);
		window.location.href=new_url;
		
		//if(#msg!=""){
		//	alert($msg);
		//}
		
		//window.location.reload();
	}
	
}

	</script>

</html>